import React from 'react';
import { useTranslation } from 'react-i18next';
import SimpleTableExample from './simple-table-example';
import AdvancedTableExample from './advanced-table-example';

const TableDemo: React.FC = () => {
  const { t } = useTranslation();

  return (
    <div className="space-y-8">
      <div>
        <h1 className="text-2xl font-bold">{t('tableDemo.title')}</h1>
        <p className="text-gray-600">{t('tableDemo.description')}</p>
      </div>
      
      <div className="space-y-12">
        <section>
          <h2 className="text-xl font-semibold mb-4">{t('tableDemo.simpleTable')}</h2>
          <SimpleTableExample />
        </section>
        
        <section>
          <h2 className="text-xl font-semibold mb-4">{t('tableDemo.advancedTable')}</h2>
          <AdvancedTableExample />
        </section>
      </div>
    </div>
  );
};

export default TableDemo;